Ext.define('OrderConvert.view.order.searchFormController', {
    extend: 'Ext.app.ViewController',
    alias: 'controller.order-searchform',

    findOrderList : function (btn) {;
        var form = btn.up("form");
        var panel = form.up("panel");
        var grid = panel.down("grid");
        var store = grid.getStore();
        console.log(store);
        var values = form.getValues();
        for(var key in values){
            store.getProxy().setExtraParam(key,values[key]);
        }
        store.reload();
    }
    
});
